package com.kaishengit.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.kaishengit.dao.InventoryDao;
import com.kaishengit.pojo.Inventory;
@Service
@Transactional
public class InventoryService {
	private InventoryDao inventoryDao;
	public List<Inventory> findAll(){
		return inventoryDao.findAll();
	}
	
	public void add(Inventory inventory){
		inventoryDao.add(inventory);
	}
	
	@Autowired
	public void setInventoryDao(InventoryDao inventoryDao) {
		this.inventoryDao = inventoryDao;
	}
	

}
